package com.guli.secKill.feign;
/*
 * @Author 罗俊
 * @date 2020/11/30 - 4:21 下午
 *
 */

import com.guli.common.to.SpuAndSkuListTo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;
@FeignClient(name="product-service")
public interface ProductFeignClient {

    @PostMapping("/pms/spuinfo/getSpuAndSkuBySpuId")
    @ApiOperation("根据spuIdList获取封装好了的spu以及它的sku")
    Map<Long, SpuAndSkuListTo> getSpuAndSkuBySpuId(@RequestBody List<Long> spuIds);
}
